package com.ibetter.test.controller;

import com.hessian.test.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhaojun on 2017/04/27.
 */

@RestController

public class HelloController {

    @Autowired

    @Qualifier("helloServiceImpl")
    HelloService helloService;
    @RequestMapping("/index")
    public Map<String,Object> index(){

        Map<String,Object> m=new HashMap<String, Object>();

        m.put("msg","hello");
        return m;
    }
}
